<?
    /* -*- Mode: PHP5; tab-width: 4; indent-tabs-mode: nil; basic-offset: 4 -*- */

    /*********************************************************
    *            --== InArch ==--
    *
    * @author Kulikov Alexey <a.kulikov@gmail.com>
    * @version n/a
    * @since 22.04.2005
    * @copyright essentialmind.com 2005
    *
    *********************************************************/
    
    /***
    * Class logScreen
    ****
    * This class is an implementation of the logProcessor interface.
    * An instance of this class will simply echo errors to the screen,
    * actions will be simply ignored.
    ****
    * @package Log
    * @author A Kulikov <a.kulikov@gmail.com>
    * @version n/a
    * @since 22.04.2005
    * @copyright essentialmind.com 2005
    ***/
    class logScreen implements logProcessor{
    
        /**
         * logScreen::recordAction()
         * 
         * Makes a record of some defined action
         *  
         * @param string  $text   - Action description
         * @param integer $code   - Action code
         * @param boolean $silent - Silent mode? (if true then any
         *                          output to the screen will be
         *                          supressed
         * @return void
         **/
        public function recordAction($text,$code=null,$silent=true){
            if(!$silent){
                echo $text . "<br />";
            }
        }
        
        
        /**
         * logScreen::recordError()
         * 
         * @param string  $text   - Error description
         * @param integer $code   - Error code
         * @param boolean $silent - Silent mode? (if true then any
         *                          output to the screen will be
         *                          supressed)
         * @return void
         **/
        public function recordError($text,$code=null,$silent=false){
            //echo to screen
            if(!$silent){
                echo 'INA Exception: ' . $text . '<br />';
            }
        }
    }
?>